<?php require_once("webassist/forms/persist.php"); ?>
<?php
//WA eCart Include
require_once("WA_eCart/ELEVATE954_PHP.php");
?><?php
$ELEVATE954->GetContent();
?>
<?php
if ($ELEVATE954->IsEmpty())     {
  $ELEVATE954->redirStr = "cart_display.php";
  $ELEVATE954->cartAction = "RedirectIfEmpty";
}
?>
<?php
// WA eCart Redirect
if ($ELEVATE954->redirStr != "")     {
  header("Location: ".$ELEVATE954->redirStr);
}
?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="WA_eCart/CSS/eC_Clean_Nautica_Tahoma.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="eC_Clean_Nautica_Tahoma">
	<?php
//WA eCart Show If Start
if (!$ELEVATE954->IsEmpty())     {
?>
	<h2>Order Receipt</h2><h3 class="eCart_OrderHeaderInfo">Order number: <?php echo ((isset($_SESSION["ELEVATE954_OrderID"]))?$_SESSION["ELEVATE954_OrderID"]:"") ?></h3><p class="eCart_OrderHeaderInfo">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
	<table class="eC_ShoppingCart" border="0" cellspacing="0" cellpadding="0">
		
			<tr>
				
					<th >Item</th>
				

					<th >&nbsp;</th>
				

					<th class="eC_PriceItem desktop_only">Price</th>
				

					<th class="eC_FormItem">Quantity</th>
				

					<th class="eC_PriceItem desktop_only">Total</th>
				
			</tr>
		<?php
while (!$ELEVATE954->EOF())      {
?>
			<tr>
				
					<td >
                    	<img src="images/products/<?php echo $ELEVATE954->DisplayInfo("Thumbnail"); ?>" alt="" class="eC_ProductThumb" />
                    </td>
				

					<td  class="eC_GroupColumn">
                    	<p id="ELEVATE954_JSON_Display_Name_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" class="eC_ItemName"><?php echo $ELEVATE954->DisplayInfo("Name"); ?></p>
<p id="ELEVATE954_JSON_Display_Description_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" class="eC_ItemDescription min_tablet"><?php echo $ELEVATE954->DisplayInfo("Description"); ?></p>
<p id="ELEVATE954_JSON_Display_Price_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" class="eC_ItemPrice max_tablet"><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->DisplayInfo("Price")); ?></p>

                    </td>
				

					<td class="eC_PriceItem desktop_only">
                    	<?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->DisplayInfo("Price")); ?>
                    </td>
				

					<td  class="eC_GroupColumn">
                    	<p class="eC_FormItem eC_ItemQuantity max_tablet"><?php echo $ELEVATE954->DisplayInfo("Quantity"); ?></p>
<p class="eC_FormItem eC_ItemQuantity desktop_only"><?php echo $ELEVATE954->DisplayInfo("Quantity"); ?></p>

                    </td>
				

					<td class="eC_PriceItem desktop_only">
                    	<?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->DisplayInfo("TotalPrice")); ?>
                    </td>
				
				
			</tr>
		<?php
  $ELEVATE954->MoveNext();
}
$ELEVATE954->MoveFirst();
?></table>
	<div class="eC_OrderSummary">
		<table border="0" cellpadding="0" cellspacing="0" class="eC_CartSummary">
			<?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetDiscounts() > 0 || $ELEVATE954->GetCharges() > 0 || $ELEVATE954->GetShipping() > 0 || $ELEVATE954->GetTax() > 0)     {
?>
				<tr>
					<td class="eC_Subtotal eC_SummaryLabel">Sub-total</td>
					<td class="eC_Subtotal"><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->TotalColumn("TotalPrice")); ?></td>
				</tr>
			<?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?><?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetDiscounts() > 0)     {
?><?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?><?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetCharges() > 0)     {
?><?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?><?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetShipping() > 0)     {
?>
					<tr>
						<td class="eC_SummaryLabel">Shipping</td>
						<td><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->GetShipping()); ?></td>
					</tr>
				<?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?><?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetTax() > 0)     {
?>
					<tr>
						<td class="eC_SummaryLabel">Tax</td>
						<td><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->GetTax()); ?></td>
					</tr>
				<?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?>
				<tr class="eC_SummaryFooter">
					<td class="eC_SummaryLabel">Grand Total:</td>
					<td><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->GrandTotal()); ?></td>
				</tr>
	  </table>
	</div>
	<?php
//WA eCart Show If Middle
}
else     {
?>
<?php
//WA eCart Show If End
}
?><table id="eC_Clean_Nautica_Tahoma_Empty" style="<?php echo(!$ELEVATE954->IsEmpty()?'display:none;':''); ?>"><tr><td>The cart is empty</td></tr></table>
	
	<div class="eC_PurchaserInfoWrapper">
		<h3 class="eC_InfoHeader" >Payment From</h3>
		<div class="eC_InfoContainer" >
        <?php
		if (!isset($_SESSION["PayPal_ECO_Token"])) {
		?>
			
			<p class="eC_OrderInfo"> <strong class="eC_OrderInfoLabel">Card number:</strong> xxxx xxxx xxxx <?php echo(WA_getSavedFormValue('WA_Payments','CardLast4')); ?><br />
				<strong class="eC_OrderInfoLabel">Expiration date:</strong><?php echo(WA_getSavedFormValue('WA_Payments','Card_Exp_Month')); ?>/<?php echo(WA_getSavedFormValue('WA_Payments','Card_Exp_Year')); ?><br />
				<strong class="eC_OrderInfoLabel">Security number:</strong> <?php echo(WA_getSavedFormValue('WA_Payments','Card_CVV')); ?></p>
			
        <?php
		} else {
		?>
			<p class="eC_OrderInfo"> <strong class="eC_OrderInfoLabel">PayPal account:</strong> <?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Email_Address')); ?></p>
			<?php
		}
		?>
		</div>
    <?php if (!isset($_SESSION["PayPal_ECO_Token"])) { ?>
		<h3 class="eC_InfoHeader"><?php echo(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','First_Name_2')?"Billing ":""); ?>Address</h3>
		<div class="eC_InfoContainer">
			<p class="eC_OrderInfo"><?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','First_Name')); ?>&nbsp;<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Last_Name')); ?><br />
				<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Address_1')); ?><br />
				<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','City')); ?>,&nbsp;<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','State')); ?>&nbsp;<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Postal_Code')); ?><br />
				<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Country')); ?><br />
				<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Phone')); ?></p>
		</div>
    <?php } ?>
	<?php if (WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','First_Name_2')) { ?>
		<h3 class="eC_InfoHeader">Shipping Information</h3>
		<div class="eC_InfoContainer">
			<p class="eC_OrderInfo"><?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','First_Name_2')); ?>&nbsp;<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Last_Name_2')); ?><br />
				<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Address_1_2')); ?><br />
				<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','City_2')); ?>,&nbsp;<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','State_2')); ?>&nbsp;<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Postal_Code_2')); ?><br />
				<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Country_2')); ?><br />
				<?php echo(WA_getSavedFormValue('CheckoutWizard_ELEVATEcart_ELEVATEcart','Phone_Number_2')); ?>
			</p>
		</div>
	<?php } ?>
	</div>
	
	<p class="eC_SmallPrint">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>

</div>

<script>
var ecart_json = "WA_eCart/eCart1_JSON.php";
</script>
<script src="WA_eCart/js/eC_Display.js"></script>
</body>
</html>
<?php 
@session_start();
if ($_SERVER["REQUEST_METHOD"] == "POST"){
  // WA_ClearSession
	$clearAll = FALSE;
	$clearThese = explode(",","PayPal_ECO_Token,PayPal_ECO_PayerID,ELEVATE954_Items,OrderID");
	if($clearAll){
		foreach ($_SESSION as $key => $value){
			unset($_SESSION[$key]);
		}
	}
	else{
		foreach($clearThese as $value){
			unset($_SESSION[$value]);
		}
	}
}
?>